package com.cx.postprocesser;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * @Author:cxy
 * @Date:2022/2/9 22:04
 */
@EnableWebMvc
@SpringBootApplication(scanBasePackages = {"com.cx.postprocesser"})
public class MyAppConfig {

    public static void main(String[] args) {
        final AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MyAppConfig.class);

//        applicationContext.register(MyAppConfig.class);
        System.out.println("applicationContext.register(AppConfig.class);");
//        applicationContext.refresh();
        System.out.println(MyOrderService.class);

    }
}
